﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Models
{
    public partial class user_question_answer
    {
        public string GetQuestionType()
        {
            var typeStr = "未知";
            if (type == "radio")
            {
                typeStr = "单选题";
            }
            if (type == "checkbox")
            {
                typeStr = "多选题";
            }
            if (type == "textarea")
            {
                typeStr = "填空题";
            }
            if (type == "select")
            {
                typeStr = "下拉选择题";
            }
            return typeStr;
        }
    }
}
